package com.kingdee.eas.minghua.trademanage.app;

import org.apache.log4j.Logger;

import com.kingdee.bos.BOSException;
import com.kingdee.bos.Context;
import com.kingdee.bos.dao.IObjectValue;
import com.kingdee.bos.dao.ormapping.ObjectUuidPK;
import com.kingdee.eas.common.EASBizException;
import com.kingdee.eas.minghua.jczlwh.mj.SfshEnum;
import com.kingdee.eas.minghua.trademanage.ContractAndProductInfo;

public class ContractAndProductControllerBean extends AbstractContractAndProductControllerBean
{
    private static Logger logger =
        Logger.getLogger("com.kingdee.eas.minghua.trademanage.app.ContractAndProductControllerBean");

	protected void _unAudit(Context ctx, IObjectValue model)throws BOSException {
		super._unAudit(ctx, model);
		ContractAndProductInfo info = (ContractAndProductInfo)model;
		info.setState(SfshEnum.save);
		info.setAuditor(null);
		try {
			_update(ctx,new ObjectUuidPK(info.getId()),info);
		} catch (EASBizException e) {
			e.printStackTrace();
		}
	}
    
}